/**
 * 
 */
package com.moioo.util;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 3400423@qq.com
 *
 */
public class SSOAuth extends HttpServlet{
	private static final long serialVersionUID = 965657814284606027L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		processRequest(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		processRequest(req, resp);
	}

	@Override
	public void init() throws ServletException {
		super.init();
	}
	protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		 
	}
	protected void initResponse(HttpServletResponse response){
	    response.setHeader("Cache-control","no-cache");
	    response.setHeader("Pragma","No-cache");
	    response.setHeader("Cache-Control","no-cache");
	    response.setHeader("Expires","0");
	    response.setContentType("text/html; charset=GBK");
	}
}
